/**
 * Theme: Ubold Admin Template
 * Author: Coderthemes
 * Code Editors page
 */

!function ($) {
    "use strict";

    var CodeEditor = function () { };

    CodeEditor.prototype.init = function () {
        var $this = this;
        //init plugin
        CodeMirror.fromTextArea(document.getElementById("code"), {
            mode: {name: "javascript"},
            lineNumbers: true,
            theme: 'ambiance'
        });

        CodeMirror.fromTextArea(document.getElementById("code2"), {
            mode: {name: "javascript"},
            lineNumbers: true,
            theme: 'ambiance'
        });

        CodeMirror.fromTextArea(document.getElementById("code3"), {
            mode: {name: "javascript"},
            lineNumbers: true,
            theme: 'ambiance'
        });

        CodeMirror.fromTextArea(document.getElementById("code4"), {
            mode: {name: "javascript"},
            lineNumbers: true,
            theme: 'ambiance'
        });

        CodeMirror.fromTextArea(document.getElementById("code5"), {
            mode: {name: "javascript"},
            lineNumbers: true,
            theme: 'ambiance'
        });

        CodeMirror.fromTextArea(document.getElementById("code6"), {
            mode: {name: "javascript"},
            lineNumbers: true,
            theme: 'ambiance'
        });

        CodeMirror.fromTextArea(document.getElementById("code7"), {
            mode: {name: "javascript"},
            lineNumbers: true,
            theme: 'ambiance'
        });

        CodeMirror.fromTextArea(document.getElementById("code8"), {
            mode: {name: "javascript"},
            lineNumbers: true,
            theme: 'ambiance'
        });

        CodeMirror.fromTextArea(document.getElementById("code9"), {
            mode: {name: "javascript"},
            lineNumbers: true,
            theme: 'ambiance'
        });

        CodeMirror.fromTextArea(document.getElementById("code10"), {
            mode: {name: "javascript"},
            lineNumbers: true,
            theme: 'ambiance'
        });
    },

    //init
    $.CodeEditor = new CodeEditor, $.CodeEditor.Constructor = CodeEditor
}(window.jQuery),

//initializing 
function ($) {
    "use strict";
    $.CodeEditor.init()
}(window.jQuery);
